import xadmin

from .models import *


class T_pictureAdmin(object):
    #显示列
    list_display =['id','movie_id','parise_num','url']
    #指定搜索内容
    search_fields = ['id','movie_id','parise_num']
    #过滤器
    list_filter = ['id','movie_id','parise_num']
    pass

class T_picture_targetAdmin(object):
    #显示列
    list_display =['id','target','remark']
    #指定搜索内容
    search_fields = ['id','target']
    #过滤器
    list_filter = ['id','target']
    pass

class T_picture_classAdmin(object):
    #显示列
    list_display =['id','target_id','picture_id']
    #指定搜索内容
    search_fields = ['id','target_id','picture_id']
    #过滤器
    list_filter = ['id','target_id','picture_id']
    pass



xadmin.site.register(T_picture, T_pictureAdmin)
xadmin.site.register(T_picture_target, T_picture_targetAdmin)
xadmin.site.register(T_picture_class, T_picture_classAdmin)
